<template>
  <div class="wms-in-bound2-input-layout">
    <div class="label-view" v-if="label" :style="{width:labelWidth?labelWidth:'auto'}">{{label}}：</div>
    <div class="input-view">
      <slot></slot>
      <div v-if="msg">
        <a-alert :message="msg" type="error" show-icon />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name:'wmsInBound2InputLayout',
  props:{
    label:{
      type:String,
      default:''
    },
    labelWidth:{
      type:String,
      default:''
    },
    msg:{
      type:String,
      default:''
    }
  },
  mounted(){
    console.log(this.$scopedSlots.err)
  }
}
</script>

<style lang="less" scoped>
.wms-in-bound2-input-layout{
  width:100%;
  display:flex;
  margin:0 auto;
  .label-view{
    flex-shrink: 0;
    padding-top: 3.5px;
    text-align: right;
  }
  .input-view{
    flex-grow:1;
  }
}
</style>